import { get, post } from "@/utils/request"
import { ResponseData } from "@/utils/types/api"

export const login = (data: any): Promise<ResponseData<{ token: string }>>=> {
  return post("/api/user/login", data)
}

export const getUserInfo = (data: any) => {
  return get("/api/user/list", data)
}